package sudroid.android.views;

import android.graphics.Bitmap;
import android.widget.ImageView;
import android.widget.TextView;
import sudroid.AssertUtil;
import sudroid.TextUtils;

public class ViewUpdateHelper
{
  public static boolean isImageLoaded(ImageView paramImageView, String paramString)
  {
    AssertUtil.checkNull(paramImageView);
    Object localObject = paramImageView.getTag();
    if (((localObject instanceof String)) && (!TextUtils.isEmptyOrBlank(paramString)) && (localObject.equals(paramString)));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static void setImageBitmap(ImageView paramImageView, Bitmap paramBitmap, String paramString)
  {
    AssertUtil.checkNull(paramImageView);
    if (!isImageLoaded(paramImageView, paramString))
    {
      paramImageView.setImageBitmap(paramBitmap);
      paramImageView.setTag(paramString);
    }
  }

  public static void setTextViewText(TextView paramTextView, String paramString)
  {
    AssertUtil.checkNull(paramTextView);
    if (!paramTextView.getText().toString().equals(paramString))
      paramTextView.setText(paramString);
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.android.views.ViewUpdateHelper
 * JD-Core Version:    0.6.0
 */